//导入安装包 uniq
let uniq = require('uniq');

//声明一个数组
let arr = [1,2,3,2,1,4,5,4,6,7,8,9,10];

//去重数组
let result = uniq(arr);

console.log(result);
